import java.awt.Color;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.border.MatteBorder;


public class Cargando extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel lblName;
	private JLabel lblNum;
	
	/**
	 * Create the panel.
	 */
	public Cargando() {

		setBounds(0, 0, 633, 433);
		setLayout(null);
		setBorder(new MatteBorder(3, 2, 2, 2, (Color) new Color(0, 0, 0)));
		setBackground(Color.GRAY);
		
		JPanel panel4 = new JPanel();
		panel4.setBounds(0, 0, 633, 343);
		add(panel4);
		panel4.setLayout(null);
		
		JLabel lblNewLabel4 = new JLabel("Cargando");
		lblNewLabel4.setFont(new Font("Marker Felt", Font.PLAIN, 19));
		lblNewLabel4.setBounds(32, 25, 233, 44);
		panel4.add(lblNewLabel4);
		
		JSeparator separator4 = new JSeparator();
		separator4.setBounds(19, 59, 597, 12);
		panel4.add(separator4);
		
		JLabel lblimagenj3 = new JLabel("");
		lblimagenj3.setBounds(147, 155, 84, 65);
		panel4.add(lblimagenj3);
		
		lblimagenj3.setIcon(new ImageIcon(getClass().getResource("loader.gif")));
        
		
		JSeparator separator_2 = new JSeparator();
		separator_2.setBounds(328, 238, 1, 12);
		panel4.add(separator_2);
		
		JLabel lblNewLabel = new JLabel("Espere el comienzo de la partida!!");
		lblNewLabel.setFont(new Font("Marker Felt", Font.PLAIN, 15));
		lblNewLabel.setBounds(243, 175, 269, 25);
		panel4.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("Jugador");
		lblNewLabel_1.setFont(new Font("Marker Felt", Font.PLAIN, 15));
		lblNewLabel_1.setBounds(95, 378, 49, 22);
		add(lblNewLabel_1);
		
		lblNum = new JLabel("2");
		lblNum.setFont(new Font("Marker Felt", Font.PLAIN, 15));
		lblNum.setBounds(145, 381, 9, 16);
		add(lblNum);
		
		JLabel lblNewLabel_3 = new JLabel(":");
		lblNewLabel_3.setFont(new Font("Marker Felt", Font.PLAIN, 15));
		lblNewLabel_3.setBounds(157, 381, 9, 16);
		add(lblNewLabel_3);
		
		lblName = new JLabel("Miguel");
		lblName.setFont(new Font("Marker Felt", Font.PLAIN, 15));
		lblName.setBounds(173, 381, 101, 16);
		add(lblName);
	}
	
	public void setNombre(String name, String num) {
		lblName.setText(name);
		lblNum.setText(num);
		lblNum.repaint();
		repaint();
	}
}
